package com.rocsea.robot.template.impl;

import com.rocsea.robot.config.build.TemplateInfo;
import com.rocsea.robot.factory.KettleTemplateFactory;
import com.rocsea.robot.model.enums.KettleBuildStrategyEnum;
import org.springframework.stereotype.Component;
/**
 * 主键是UUID
 * @Author RocSea
 * @Date 2022/12/7
 */
@Component
public class PkUuidTemplate extends FirstBatchTemplate {
    @Override
    public TemplateInfo getTemplateInfo() {
        return getTemplateConfig().getPkUuid();
    }

    @Override
    public void afterPropertiesSet() {
        KettleTemplateFactory.register(KettleBuildStrategyEnum.PK_UUID.getText(), this);
    }

}
